#include<stdio.h>
#include<string.h>
int main()
{
    int n=123456;
    char s[10];
    sprintf(s,"%d%d",n%10,n/10);
    puts(s);
    int m;
    sscanf(s,"%d",&m);


    int x=465,y=198,z=273;
    char t[10];
    sprintf(t,"%d%d%d",x,y,z);
    qsort(t,9,1,strcmp);
    puts(t);
    if(strcmp(t,"123456789")==0)
        puts("OK");


    return 0;
}
